  <%= f.error_messages %>

  <p>
    <%= f.label :code %>
    <%= f.text_field :code %>
  </p>
  <p>
    <%= f.label :stock %>
    <%= f.check_box :stock %>
  </p>
  <p>
    <%= f.label :capacity %>
    <%= f.text_field :capacity %>
  </p>
  <p>
    <%= f.label :company_id %>
	<% companies = Company.all %>
    <%= f.select(:company_id, companies.collect {|c| [c.name, c.id] },:prompt => "Select company", :include_blank => true)%>
  </p>
  
  <p>
    <%= f.submit 'Create' %>
  </p>
